﻿using Bussiness.Articles;
using Bussiness.Language;
using FOModels.Language;
using FOSystem.CultureHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FO.Controllers
{
    public class TermController : CultureController
    {
        //
        // GET: /Term/

        public ActionResult Index()
        {
            ArticlesBLL bll = new ArticlesBLL();
            LanguageBLL langbll = new LanguageBLL();
            int TermArticlesID = int.Parse(System.Configuration.ConfigurationManager.AppSettings["TermArticlesID"].ToString());
            Language lang = langbll.getLangByCode(Request.Cookies["_culture"]["lang"]);
            ViewBag.AboutUs = bll.getArticlesByIDShow(TermArticlesID, lang.LangID);
            return View();
        }

    }
}
